Community
Why is my Bootstrap settings not updated on my flask app?
Hi Sentdex,
I'm following along in your flask app and I can't get my bootstrap settings to actually change. I downloaded the jumbotron-narrow Bootstrap theme and I got the following links to my different stylesheets:
<link href="{{ url_for('static',filename='css/bootstrap.min.css') }}" type="text/css" rel="stylesheet"> <link href="{{ url_for('static',filename='css/jumbotron-narrow.css') }}" type="text/css" rel="stylesheet"> <link href="{{ url_for('static',filename='css/mystyle.css') }}" type="text/css" rel="stylesheet"> I'm simply trying to change the background color of a container so I went to my "mystyle.css" and added:
body { background-color: #000000; }and I still have no change in the jumbotron - am I doing something wrong? Is there something fundamental that I missed?
Thanks a lot
×
You must be logged in to post. Please login or register an account.
Did you add it to the beginning or the end of the CSS file?
-Harrison 8 years ago
Reply
×
You must be logged in to post. Please login or register an account.
Add what? The only thing "mystyle.css" contains is
.jumbotron { background-color: black; }Is there some order that the sheets must go in or something?
-erikvm 8 years ago
Last edited 8 years ago
Reply
×
You must be logged in to post. Please login or register an account.
If you meant in the "index.html" it looks like this:
<link href="{{ url_for('static',filename='css/bootstrap.min.css') }}" type="text/css" rel="stylesheet"> <link href="{{ url_for('static',filename='css/jumbotron-narrow.css') }}" type="text/css" rel="stylesheet"> <link href="{{ url_for('static',filename='css/custom.css') }}" type="text/css" rel="stylesheet">So at the end.
-erikvm 8 years ago
Reply
×
You must be logged in to post. Please login or register an account.